package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.OrganAddress;

import java.util.List;
import java.util.Map;

public interface OrganAddressDao {

  public void add(OrganAddress organAddress);

  public Page<OrganAddress> selectByCondition(String queryString);

  public OrganAddress findById(Integer id);

  void edit(OrganAddress organAddress);

  List<OrganAddress> findAll();

  void deleteById(Integer id);

  List<OrganAddress> findOrgans(Map map);

  OrganAddress findOrganByPhone(String PhoneNum);

  OrganAddress selectByAddress(String address);

  void addOrderAndOrgan(Integer id, Integer id1);

  long findCountByOrganId(Integer id);
}
